<template>
  <el-input-number v-model="num" @change="countChange" :min="1" :max="max" label="描述文字" size="small"></el-input-number>
</template>
<script>
  export default {
    data() {
      return {
        num: 1
      };
    },
    methods: {
      
      countChange(){

        this.$emit('getCount', parseInt(this.num))

      }

    },
    props: ["max"]
  };
</script>

<style lang="scss" scoped>

</style>